home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK1.toast / Development Kits (Disc 1) / Interfaces & Libraries / Interfaces / NewRoutineNames.dict
Encoding:
Text File  |  1996-05-21  |  11.6 KB  |  428 lines  |  [TEXT/MPS ]

  1. #
  2. #     File:        NewRoutineNames.dict
  3. #     Copyright:    © 1984-1996 by Apple Computer, Inc.
  4. #                 All rights reserved.
  5. #     Version:    Universal Interfaces 2.1.3  Tuesday, May 21, 1996
  6. #     Bugs?:        If you find a problem with this file, send the file and version
  7. #                 information (from above) and the problem description to:
  8. #                     Internet:    apple.bugs@applelink.apple.com
  9. #                     AppleLink:    APPLE.BUGS
  10. #
  11. #    Purpose:    This file was created to make it easier to update source code
  12. #                to use the new routine names.  PowerPC application bind to 
  13. #                system calls by name.  Therefore, any system routine names
  14. #                cannot change, or shipping applications would break. This was
  15. #                not a problem on classic 68K applications because system routine
  16. #                names were compiled out, only A-Traps were in the shipping app.
  17. #                Apple took the shift to PowerPC as an opportunity to define
  18. #                better names for system routines.
  19. #
  20. #     Usage:         You need to run each file in your source through the Canon tool with
  21. #                this file.  Below is an example. Be sure to change the file extension
  22. #                if your sources source file names end in something other than ".c"
  23. #
  24. #    Note:        1)The Canon tool does simple text replacement.  It has no concept of
  25. #                grammar, so it might do a replacement that is not necessary.  The
  26. #                example below shows all the changes the tool makes.  You should
  27. #                review these changes manually.
  28. #                2) The sample script below makes changes to your source files, and  
  29. #                generates a log (a diff to stdout) of those changes.  You many wish 
  30. #                to make a backup of your sources before running the script.
  31. #  
  32. #     Set Sources ""            # set the variable Sources to the path of the sources.  (Ex.  Set Sources "Hard Disk:Sources:")
  33. #    Set    NewRoutineNames    ""    # set the variable to be the full path of this file     (Ex.  Set NewRoutineNames "Hard Disk:NewRoutineNames.dict")
  34. #    Set Exit 0
  35. #    For i in `Files -f -r "{Sources}"≈.c`
  36. #         If `Exists -f "{i}"`
  37. #            Canon -s "{NewRoutineNames}" "{i}" > "{i}.can"
  38. #            Compare "{i}" "{i}.can"
  39. #            Rename -y "{i}.can" "{i}"
  40. #        End
  41. #    End
  42. #
  43.  
  44.  
  45. #################
  46. # AppleEvents
  47. #################
  48. AEPutKeyPtr        AEPutParamPtr
  49. AEPutKeyDesc    AEPutParamDesc
  50. AEGetKeyPtr        AEGetParamPtr
  51. AEGetKeyDesc    AEGetParamDesc
  52. AESizeOfKeyDesc    AESizeOfParam
  53. AEDeleteKeyDesc    AEDeleteParam
  54.  
  55.  
  56. #################
  57. # CMApplications
  58. #################
  59. CMFlattenProc                CMFlattenProcPtr
  60. CMBitmapCallBackProc        CMBitmapCallBackProcPtr
  61. CMProfileFilterProc            CMProfileFilterProcPtr
  62. CMNoError                    noErr                            
  63. CMProfileError                cmProfileError
  64. CMMethodError                cmMethodError
  65. CMMethodNotFound            cmMethodNotFound
  66. CMProfileNotFound            cmProfileNotFound
  67. CMProfilesIdentical            cmProfilesIdentical
  68. CMCantConcatenateError        cmCantConcatenateError
  69. CMCantXYZ                    cmCantXYZ
  70. CMCantDeleteProfile            cmCantDeleteProfile
  71. CMUnsupportedDataType        cmUnsupportedDataType
  72. CMNoCurrentProfile            cmNoCurrentProfile
  73. qdSystemDevice                cmSystemDevice
  74. qdGDevice                    cmGDevice
  75. kMatchCMMType                cmMatchCMMType
  76. kMatchApplProfileVersion    cmMatchApplProfileVersion
  77. kMatchDataType                cmMatchDataType
  78. kMatchDeviceType            cmMatchDeviceType
  79. kMatchDeviceManufacturer    cmMatchDeviceManufacturer
  80. kMatchDeviceModel            cmMatchDeviceModel
  81. kMatchDeviceAttributes        cmMatchDeviceAttributes
  82. kMatchFlags                    cmMatchFlags
  83. kMatchOptions                cmMatchOptions
  84. kMatchWhite                    cmMatchWhite
  85. kMatchBlack                    cmMatchBlack
  86. CMYKColor                    CMCMYKColor
  87. CWorld                        CMWorldRef
  88. CMGamutResult                long*
  89. EndMatching                    CMEndMatching
  90. EnableMatching                CMEnableMatchingComment
  91. GetColorSyncFolderSpec        CMGetColorSyncFolderSpec
  92. BeginMatching                CMBeginMatching
  93. DrawMatchedPicture            CMDrawMatchedPicture
  94. UseProfile                    CMUseProfileComment
  95. GetProfileName                CMGetProfileName
  96. GetProfileAdditionalDataOffset    CMGetProfileAdditionalDataOffset
  97.  
  98.  
  99. #################
  100. # CMICCProfile
  101. #################
  102. kCMApplProfileVersion        cmCS1ProfileVersion
  103. grayResponse                cmGrayResponse
  104. redResponse                    cmRedResponse
  105. greenResponse                cmGreenResponse
  106. blueResponse                cmBlueResponse
  107. cyanResponse                cmCyanResponse
  108. magentaResponse                cmMagentaResponse
  109. yellowResponse                cmYellowResponse
  110. ucrResponse                    cmUcrResponse
  111. bgResponse                    cmBgResponse
  112. onePlusLastResponse            cmOnePlusLastResponse
  113. rgbData                        cmRGBData
  114. cmykData                    cmCMYKData
  115. grayData                    cmGrayData
  116. xyzData                        cmXYZData
  117. XYZData                        cmXYZData
  118. monitorDevice                cmMonitorDevice
  119. scannerDevice                cmScannerDevice
  120. printerDevice                cmPrinterDevice
  121. CMNativeMatchingPreferred    cmNativeMatchingPreferred    
  122. CMTurnOffCache                cmTurnOffCache                
  123. CMPerceptualMatch            cmPerceptualMatch    
  124. CMColorimetricMatch            cmColorimetricMatch        
  125. CMSaturationMatch            cmSaturationMatch            
  126. XYZColor                    CMXYZColor
  127. IString                        CMIString
  128. responseColor                CMResponseColor
  129.  
  130.  
  131. #################
  132. # CodeFragments (types and constants)
  133. #################
  134. ConnectionID                    CFragConnectionID
  135. LoadFlags                        CFragLoadOptions
  136. SymClass                        CFragSymbolClass
  137. MemFragment                        CFragOldMemoryLocator
  138. DiskFragment                    CFragHFSDiskFlatLocator
  139. SegmentedFragment                CFragHFSSegmentedLocator
  140. FragmentLocator                    CFragHFSLocator    
  141. FragmentLocatorPtr                CFragHFSLocatorPtr
  142. InitBlock                        CFragInitBlock
  143. InitBlockPtr                    CFragInitBlockPtr
  144. ConnectionInitializationRoutine    CFragInitFunction
  145. ConnectionTerminationRoutine     CFragTermRoutine
  146. kPowerPCArch                    kPowerPCCFragArch
  147. kMotorola68KArch                kMotorola68KCFragArch
  148. kAnyArchType                    kAnyCFragArch
  149. kNoLibName                        NULL
  150. kNoConnectionID                    NULL
  151. kLoadLib                        kLoadCFrag
  152. kFindLib                        kFindCFrag
  153. kLoadNewCopy                    kNewCFragCopy
  154. kUseInPlace                        kInplaceCFrag
  155. kCodeSym                        kCodeCFragSymbol
  156. kDataSym                        kDataCFragSymbol
  157. kTVectSym                        kTVectorCFragSymbol
  158. kTOCSym                            kTOCCFragSymbol
  159. kGlueSym                        kGlueCFragSymbol
  160. kInMem                            kMemoryCFragLocator
  161. kOnDiskFlat                        kDataForkCFragLocator
  162. kOnDiskSegmented                kResourceCFragLocator
  163. kIsLib                            kImportLibraryCFrag
  164. kIsApp                            kApplicationCFrag
  165. kIsDropIn                        kDropInAdditionCFrag
  166. kFullLib                        kIsCompleteCFrag
  167. kUpdateLib                        kFirstCFragUpdate
  168. kCFMRsrcType                    kCFragResourceType
  169. kCFMRsrcID                        kCFragResourceID
  170. kSHLBFileType                    kCFragLibraryFileType
  171. kUnresolvedSymbolAddress        kUnresolvedCFragSymbolAddress
  172. kPowerPC                        kPowerPCCFragArch
  173. kMotorola68K                    kMotorola68KCFragArch
  174.  
  175.  
  176. #################
  177. # Controls
  178. #################
  179. SetCTitle        SetControlTitle
  180. GetCTitle        GetControlTitle
  181. UpdtControl        UpdateControls
  182. SetCtlValue        SetControlValue
  183. GetCtlValue        GetControlValue
  184. SetCtlMin        SetControlMinimum
  185. GetCtlMin        GetControlMinimum
  186. SetCtlMax        SetControlMaximum
  187. GetCtlMax        GetControlMaximum
  188. GetAuxCtl        GetAuxiliaryControlRecord
  189. SetCRefCon        SetControlReference    
  190. GetCRefCon        GetControlReference
  191. SetCtlAction    SetControlAction
  192. GetCtlAction    GetControlAction
  193. SetCtlColor        SetControlColor
  194. GetCVariant        GetControlVariant
  195. useWFont                    popupUseWFont
  196. inLabel                        kControlLabelPart
  197. inMenu                        kControlMenuPart
  198. inTriangle                     kControlTrianglePart
  199. inButton                     kControlButtonPart
  200. inCheckBox                     kControlCheckBoxPart
  201. inUpButton                     kControlUpButtonPart
  202. inDownButton                kControlDownButtonPart
  203. inPageUp                     kControlPageUpPart
  204. inPageDown                     kControlPageDownPart
  205. inThumb                     kControlIndicatorPart
  206. kNoHiliteControlPart        kControlNoPart
  207. kInLabelControlPart            kControlLabelPart
  208. kInMenuControlPart            kControlMenuPart
  209. kInTriangleControlPart        kControlTrianglePart
  210. kInButtonControlPart        kControlButtonPart
  211. kInCheckBoxControlPart        kControlCheckBoxPart
  212. kInUpButtonControlPart        kControlUpButtonPart
  213. kInDownButtonControlPart    kControlDownButtonPart
  214. kInPageUpControlPart        kControlPageUpPart
  215. kInPageDownControlPart        kControlPageDownPart
  216. kInIndicatorControlPart        kControlIndicatorPart
  217. kReservedControlPart        kControlDisabledPart
  218. kControlInactiveControlPart kControlInactivePart
  219.  
  220.  
  221. #################
  222. # CTBUtilities
  223. #################
  224. NuLookup        StandardNBP
  225. NuPLookup        CustomNBP
  226.  
  227.  
  228. #################
  229. # Dialogs
  230. #################
  231. DisposDialog    DisposeDialog
  232. UpdtDialog        UpdateDialog
  233. GetDItem        GetDialogItem
  234. SetDItem        SetDialogItem
  235. HideDItem        HideDialogItem
  236. ShowDItem        ShowDialogItem
  237. SelIText        SelectDialogItemText
  238. GetIText        GetDialogItemText
  239. SetIText        SetDialogItemText
  240. FindDItem        FindDialogItem
  241. NewCDialog        NewColorDialog
  242. GetAlrtStage    GetAlertStage
  243. ResetAlrtStage    ResetAlertStage
  244. DlgCut            DialogCut
  245. DlgCopy            DialogCopy
  246. DlgPaste        DialogPaste
  247. DlgDelete        DialogDelete
  248. SetDAFont        SetDialogFont
  249. kOkItemIndex        kStdOkItemIndex
  250. kCancelItemIndex    kStdCancelItemIndex
  251.  
  252. #################
  253. # Events
  254. #################
  255. KeyTrans        KeyTranslate
  256.  
  257.  
  258. #################
  259. # Lists
  260. #################
  261. LDoDraw            LSetDrawingMode
  262. LFind            LGetCellDataLocation
  263.  
  264.  
  265. #################
  266. # Memory
  267. #################
  268. ApplicZone        ApplicationZone
  269. MFTempNewHandle    TempNewHandle
  270. MFMaxMem        TempMaxMem
  271. MFFreeMem        TempFreeMem
  272. MFTempHLock        TempHLock
  273. MFTempHUnlock    TempHUnlock
  274. MFTempDisposHandle    TempDisposeHandle
  275. MFTopMem        TempTopMem
  276. ResrvMem        ReserveMem
  277. DisposPtr        DisposePtr
  278. DisposHandle    DisposeHandle
  279. ReallocHandle    ReallocateHandle
  280.  
  281.  
  282. #################
  283. # Menus
  284. #################
  285. AddResMenu        AppendResMenu
  286. InsMenuItem        InsertMenuItem
  287. DelMenuItem        DeleteMenuItem
  288. SetItem            SetMenuItemText
  289. GetItem            GetMenuItemText
  290. GetMHandle        GetMenuHandle
  291. DelMCEntries    DeleteMCEntries
  292. DispMCInfo        DisposeMCInfo
  293.  
  294.  
  295. #################
  296. # OSUtils
  297. #################
  298. LongDate2Secs    LongDateToSeconds
  299. LongSecs2Date    LongSecondsToDate
  300. IUMetric        IsMetric
  301. Date2Secs        DateToSeconds
  302. Secs2Date        SecondsToDate
  303.  
  304.  
  305. #################
  306. # PictUtils
  307. #################
  308. DisposPictInfo    DisposePictInfo
  309.  
  310.  
  311. #################
  312. # Quickdraw
  313. #################
  314. DisposPixMap    DisposePixMap
  315. DisposPixPat    DisposePixPat
  316. DisposCTable    DisposeCTable
  317. DisposCCursor    DisposeCCursor
  318. DisposCIcon        DisposeCIcon
  319. DisposGDevice    DisposeGDevice
  320. frame            kQDGrafVerbFrame
  321. paint            kQDGrafVerbPaint
  322. erase            kQDGrafVerbErase
  323. invert            kQDGrafVerbInvert
  324. fill            kQDGrafVerbFill
  325.  
  326.  
  327. #################
  328. # QuickdrawText
  329. #################
  330. NPixel2Char        PixelToChar
  331. NChar2Pixel        CharToPixel
  332. NDrawJust        DrawJustified
  333. NMeasureJust    MeasureJustified
  334. NPortionText    PortionLine
  335.  
  336.  
  337. #################
  338. # QuickTime
  339. #################
  340. ClockGetTime    GetClockTime
  341.  
  342. #################
  343. # Resources
  344. #################
  345. SizeResource    GetResourceSizeOnDisk
  346. MaxSizeRsrc        GetMaxResourceSize
  347. RmveResource    RemoveResource
  348.  
  349.  
  350. #################
  351. # Script
  352. #################
  353. SetSysJust        SetSysDirection
  354. GetSysJust        GetSysDirection
  355. Font2Script        FontToScript
  356. GetEnvirons        GetScriptManagerVariable
  357. SetEnvirons        SetScriptManagerVariable
  358. IUGetIntl        GetIntlResource
  359. IUSetIntl        SetIntlResource
  360. IUClearCache    ClearIntlResourceCache
  361. IUGetItlTable    GetIntlResourceTable
  362. GetScript        GetScriptVariable
  363. SetScript        SetScriptVariable
  364.  
  365.  
  366. #################
  367. # Sound
  368. #################
  369. initChan0        waveInitChannel0
  370. initChan1        waveInitChannel1
  371. initChan2        waveInitChannel2
  372. initChan3        waveInitChannel3        
  373.  
  374.  
  375. #################
  376. # TextEdit
  377. #################
  378. TESetJust        TESetAlignment
  379. TextBox            TETextBox
  380. TEStylNew        TEStyleNew
  381. SetStylHandle    TESetStyleHandle
  382. SetStyleHandle    TESetStyleHandle
  383. GetStylHandle    TEGetStyleHandle
  384. GetStyleHandle    TEGetStyleHandle
  385. TEStylPaste        TEStylePaste
  386. GetStylScrap    TEGetStyleScrapHandle
  387. GetStyleScrap    TEGetStyleScrapHandle
  388. SetStylScrap    TEUseStyleScrap
  389. SetStyleScrap    TEUseStyleScrap
  390. SetClikLoop        TESetClickLoop
  391. TEGetScrapLen    TEGetScrapLength
  392. TESetScrapLen    TESetScrapLength
  393. SetWordBreak    TESetWordBreak
  394. TEStylInsert    TEStyleInsert
  395. TEBitClear        teBitClear
  396. TEBitSet        teBitSet
  397. TEBitTest        teBitTest
  398.  
  399.  
  400. #################
  401. # TextUtils
  402. #################
  403. FormatX2Str        ExtendedToString
  404. UprString        UpperString
  405. String2Date        StringToDate
  406. String2Time        StringToTime
  407. FormatX2Str        ExtendedToString
  408. FormatStr2X        StringToExtended
  409. Str2Format        StringToFormatRec
  410. Format2Str        FormatRecToString
  411. IUDatePString    DateString
  412. IUTimePString    TimeString
  413. IULDateString    LongDateString
  414. IULTimeString    LongTimeString
  415. IUCompPString    CompareString
  416. IUEqualPString    IdenticalString
  417. IUMagPString    CompareText
  418. IUMagIDPString    IdenticalText
  419. IULangOrder        LanguageOrder
  420. IUTextOrder        TextOrder
  421. IUStringOrder    StringOrder
  422.